package cn.com.duiba.millionaire.center.biz.remoteservice;

import cn.com.duiba.millionaire.center.api.dto.MillionaireCenterResponseDto;
import cn.com.duiba.millionaire.center.api.remoteservice.RemoteShareCodeService;
import cn.com.duiba.millionaire.center.biz.service.ShareCodeService;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by sty on 1/20/18.
 */
@RestController
public class RemoteShareCodeServiceImpl implements RemoteShareCodeService {

    @Autowired
    private ShareCodeService shareCodeService;

    @Override
    public MillionaireCenterResponseDto inviteUser(String shareCode, Long invitedConsumerId, Long appId) {

        return shareCodeService.inviteUser(shareCode, invitedConsumerId, appId);
    }
}
